<!-- 工作巡查主页面 -->
<template>
  <div>
    <el-dialog
      class="dialogSt"
      v-model="props.dialogVisible"
      title="提醒"
      width="480"
      style="padding: 0; border-radius: 12px"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      @close="resetForm(ruleFormRef)"
    >
      <div style="text-align: center">
        <img :src="props.src" />
        <div style="margin-top: 20px">{{ props.val }}</div>
      </div>
      <template #footer>
        <div style="text-align: center; margin-bottom: 10px">
          <el-button
            style="
              background: rgba(14, 108, 255, 0.08);
              border: none;
              color: #293555;
              width: 100px;
            "
            type="primary"
            @click="resetForm(ruleFormRef)"
          >
            取消
          </el-button>

          <el-button
            style="width: 100px"
            type="primary"
            @click="submitForm(ruleFormRef)"
          >
            确定
          </el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
const props = defineProps({
  src: String,
  val: String,
  dialogVisible: Boolean,
});
const emit = defineEmits(["closeDialog"]);
const state = reactive({
  dialogVisible: true,
});
const resetForm = () => {
  emit("closeDialog");
};
const submitForm = () => {
  emit("closeDialog");
};
onMounted(() => {});
</script>

<style scoped lang="scss">
:deep(.el-menu) {
  background-color: rgba($color: #000000, $alpha: 0);
}
:deep(.el-menu--horizontal > .el-menu-item) {
  color: #293555;
  font-size: 16px;
  font-weight: 600;
}
:deep(.el-menu--horizontal.el-menu) {
  border-bottom: 1px solid #ccddf7;
  box-shadow: 1px 1px 2px 0px #ffffff;
}
:deep(.el-form--inline .el-form-item) {
  margin-right: 10px;
  margin-bottom: 6px;
}
.dialogSt {
  font-family: PingFangSC, PingFang SC;
  .tit {
    font-weight: 600;
    font-size: 14px;
    color: #293555;
    line-height: 20px;
  }
}
:deep(.el-dialog__header) {
  background: #6e8dfb;
  padding: 14px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
:deep(.el-dialog__title) {
  color: #fff;
}
:deep(.el-dialog__headerbtn) {
  font-size: 24px;
  margin-top: 2px;
}
:deep(.el-dialog__headerbtn .el-dialog__close) {
  color: #fff;
}
:deep(.el-dialog__body) {
  padding: 16px 50px;
  background: linear-gradient(134deg, #e9effb 0%, #fbfcff 100%);
}
:deep(.el-dialog__footer) {
  padding: 30px 0 20px;
  border-top: 1px solid #ccddf7;
  box-shadow: 0px 0px 0px 0px #ffffff;
  background: linear-gradient(134deg, #e9effb 0%, #fbfcff 100%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.avatar-uploader .el-upload {
  border: 1px dashed var(--el-border-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--el-transition-duration-fast);
}

.avatar-uploader .el-upload:hover {
  border-color: var(--el-color-primary);
}

.el-icon.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  background-color: #fff;
  width: 254px;
  height: 142px;
  text-align: center;
  border: 1px solid #ccddf7;
  border-radius: 8px;
  margin-top: 15px;
}
:deep(.el-form-item .asterisk-left) {
  align-items: center;
}
:deep(.el-select__wrapper) {
  height: 40px;
}
</style>

function defineEmits(arg0: string[]) { throw new Error("Function not
implemented."); } function defineEmits(arg0: string[]) { throw new
Error("Function not implemented."); } function defineProps(arg0: { title:
StringConstructor; show: { type: BooleanConstructor; default: boolean; }; }) {
throw new Error("Function not implemented."); }
